home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 1
/
SPACE - Library 1 - Volume 1.iso
/
utilitys
/
613
/
access
/
dir.bat
< prev
next >
Wrap
DOS Batch File
|
1991-10-19
|
954b
|
31 lines
set indent 1
set offset 0
set total0 0
for -d 2 $1
if !{= $5 {>>>>>>}}
echo !{justify {} $indent}{Subdirectory }$2{:\n}
set indent !{+ $indent 4}
set offset !{+ $offset 1}
set total$offset 0
elseif !{= $5 {<<<<<<}}
if $-w
echo {\n}
set indent !{- $indent 4}
echo !{justify {} $indent}${total`$offset}{ bytes used from }$2{\n}
set offset !{- $offset 1}
set total$offset !{+ ${total`$offset} ${total`!{+ $offset 1}}}
set total!{+ $offset 1} {}
else
set total$offset !{+ ${total`$offset} $4}
set 2 !{tail $2}
if $-w
if !{= !{segment $5 5 1} {d}}
set 2 $2{\\}
echo !{justify $2 -16}
else
echo !{justify {} $indent}!{justify $2 -13}!{justify $4 11}{ }$5{ }$6{\n}
if $-w
echo {\n}
echo ${total`$offset}{ bytes used\n}
set total$offset {}